//
//  HFImageEditViewController.h
//  HFImageEdit
//
//  Created by Luffy on 2020/8/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@class HFImageEditViewController;

@protocol HFImageEditViewControllerDelegate <NSObject>

/**
 选取完成

 @param vc vc
 @param image 截取View获得图片
 @param originSizeImage 截取框对应原图片
 */
- (void)editController:(HFImageEditViewController *)vc finishiEditShotImage:(UIImage *)image originSizeImage:(UIImage *)originSizeImage;

/**
 取消

 @param vc vc
 */
- (void)editControllerDidClickCancel:(HFImageEditViewController *)vc;

@end

@interface HFImageEditViewController : UIViewController

@property (nonatomic, weak) id <HFImageEditViewControllerDelegate> delegate;

/**
 截取原图
 */
@property (nonatomic, strong) UIImage *originImage;

/**
 选取框size
 */
@property (nonatomic, assign) CGSize editViewSize;

/**
 蒙层动画 默认no
 */
@property (nonatomic, assign) BOOL maskViewAnimation;

@end

NS_ASSUME_NONNULL_END
